//
//  UITextField+PGExtend.m
//  youqu
//
//  Created by 彭鹏 on 16/9/24.
//  Copyright © 2016年 pengpeng. All rights reserved.
//

#import "UITextField+PGExtend.h"

@implementation UITextField (PGExtend)

- (void)setPlaceholderColor:(UIColor *)placeholderColor {
    NSString *placeholder = self.placeholder;
    self.placeholder = @" ";
    [self setValue:placeholderColor forKeyPath:@"placeholderLabel.textColor"];
    self.placeholder = placeholder;
}


- (UIColor *)placeholderColor {
    //0 0 0.0980392 0.22
    return rgba(0, 0, 0.0980392, 0.22);
}

@end
